<template>
  <div>

      <el-tabs v-if="$route.name!='threadsEdit'" v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="新线索" name="threadsNewList"></el-tab-pane>
        <el-tab-pane label="返还线索" name="threadsList"></el-tab-pane>

      </el-tabs>
    <router-view></router-view>
  </div>
  <!--全局keeplive在嵌套路由不生效-->

</template>

<script>
  import Vue from 'vue'

  export default{
    name: "threadsIndex",
    components: {

    },
    data(){
      return{
        activeName:''
      }
    },
    computed:{
    },
    mounted() {
      this.activeName=this.$route.name;
    },

    methods: {

      handleClick:function(vm){

        this.$router.push({name:this.activeName})

      },
    


    }

  }
</script>